StoredLearningSession.LoggingOptions Property

Gets or sets the level of logging in this session. In order to log all sequencing operations, this value should be set before any session requests related to navigating the package, such as MoveNext or IsMoveToActivityValid.

Parent Type: StoredLearningSession

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public LoggingOptions LoggingOptions

{ get; set; }
Exceptions
Exception type Condition
ArgumentOutOfRangeException

Thrown when caller attempts to set an invalid value for the enumeration.

InvalidOperationException

Thrown when callers attempts to set the value when View is Review.

Remarks

It is not valid to set this value when Microsoft.LearningComponents.LearningSession.View is SessionView.Review.. In RandomAccess view, changing this value has no effect, as sequencing rules are ignored in this mode.

This value of this property is saved to LearningStore on the next call to CommitChanges, before disposing the session object.

By default, no logging is done in the session.